package com.itheima.service.impl;

import com.itheima.dao.BookDao;
import com.itheima.service.BookService;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;

//注入: BookServiceImpl中注入BookDao接口的实现类
@Setter
public class BookServiceImpl implements BookService {

    private BookDao bookDao;
    //注入基本数据类型
    private String name;
    private Integer age;
    //注入引用数据类型
    private Date birthday;

    @Override
    public void save() {
        System.out.println("save() ..."+bookDao+"---"+ name+","+age+","+birthday);
    }
}
